package gem.model.dao;

import gem.model.core.Department;
import gem.model.core.ScienceDomain;
import java.sql.SQLException;

public interface DepartmentDAO
{
	public int insertDepartment( Department d ) throws SQLException;
        public int insertDepartment( String name ) throws SQLException;
	public Department findDepartment( String s ) throws SQLException;
	java.util.Collection<Department> listDepartments() throws SQLException;
	public boolean updateDepartment( Department d ) throws SQLException;
	public boolean moveScienceDomain( ScienceDomain sd, Department from, Department to ) throws SQLException;
	public boolean deleteDepartment(Department d) throws SQLException;
	public java.util.Collection<ScienceDomain> listScienceDomains( Department d ) throws SQLException;
}

